<?php

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

class User extends Model{
    protected $autoWriteTimestamp = true;
    use SoftDelete;
    //用户信息
    public function profile(){
        return $this->hasOne(Profile::class,'user_id');
    }
}